import yagmail
def send_email():
    email=yagmail.SMTP(user="3369588519@qq.com",password="nmwzsytvaszxdbgf",host="SMTP.qq.com")
    email.send(to="3369588519@qq.com",subject="测试报告",attachments=['baogao.html'])